Skip to content

Test#2

Open
zhangbo8418 wants to merge 30 commits intobossfrom
Test
Open

Test#2
zhangbo8418 wants to merge 30 commits intobossfrom
Test

Conversation

@zhangbo8418
Copy link
Copy Markdown
Owner

@zhangbo8418 zhangbo8418 commented Dec 29, 2025

Note

Overview

  • Introduces a public, matrix-based CI saga (.github/workflows/bbx-saga.yaml) that installs BrowserBox via release installers, runs end-to-end tests (run/ng-run/tor-run/cf-run), and supports containers, tmate-on-failure, and Windows checks.

Key changes

  • New test harness /.github/scripts/test-bbx.sh to exercise bbx setup/run paths, validate login/service links, and collect logs; handles root→user handoff and port/nginx conflicts.
  • New cross-platform installer: deploy-scripts/install.sh (Unix/macOS) downloads release assets, verifies signed release.manifest.json, selects platform artifact, and runs --install/--full-install.
  • Windows install rework: windows-scripts/install.ps1 downloads/validates signed binaries, installs commands via cp_commands_only.ps1, and splits dependency setup into install_deps.ps1; improves update prompts and config paths.
  • bbx.sh hardens env/paths (dosaygo), redirects install to browserbox.io installer, improves Cloudflare edge selection, multi-user manifest placement, and user handoff/ownership fixes; usage/help text updated.
  • Adds admin and docs: admin-tools/retrigger-public-saga.sh, AGENTS.md, INDEX.md, docs/* for saga iteration and release flow.

Written by Cursor Bugbot for commit eda1816. This will update automatically on new commits. Configure here.

Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is being reviewed by Cursor Bugbot

Details

You are on the Bugbot Free tier. On this plan, Bugbot will review limited PRs each billing cycle.

To receive Bugbot reviews on all of your PRs, visit the Cursor dashboard to activate Pro and start your 14-day free trial.

if command -v bbcertify; then
cert_file=$(bbcertify --no-reservation)
reservation_file="${HOME}/.config/dosaygo/bbpro/tickets/reservation.json"
if [ $? -eq 0 ] && [ -n "$cert_file" ] && [ -f "$cert_file" ]; then
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Exit code check tests wrong command's result

The $? on this line checks the exit status of the reservation_file=... variable assignment on line 166, not the bbcertify --no-reservation command on line 165. Variable assignments typically return 0, so the condition will pass even if bbcertify fails. The exit status should be captured immediately after the command subprocess, e.g., by checking within the same compound statement or storing in a variable right after line 165.

Fix in Cursor Fix in Web

trap 'echo -e "\n${NC}Test Summary:"; \
echo -e "${GREEN}Passed: $passed${NC}"; \
echo -e "${RED}Failed: $failed${NC}"; \
echo -e "${YELLOW}Warnings: $warnings${NC}"' EXIT
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Second EXIT trap replaces cleanup trap

Setting a second trap ... EXIT on line 195 replaces the first trap set on line 187. This means saga_bbx_stop &>/dev/null will never be called via the trap mechanism. If the script exits unexpectedly (e.g., via exit 1 during installation failures), the BrowserBox cleanup won't run. The traps need to be combined into a single trap command or use a cleanup function that performs both actions.

Additional Locations (1)

Fix in Cursor Fix in Web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants